package com.jiang.jixiang.bean;

import java.util.List;

public class NearbyNearbyMerchantBean {
    private int total;
    private List<SellerListBean> list;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<SellerListBean> getList() {
        return list;
    }

    public void setList(List<SellerListBean> list) {
        this.list = list;
    }

    public List<SellerListBean> removeDuplicate() {
        for (int i = 0; i < list.size() - 1; i++) {
            for (int j = list.size() - 1; j > i; j--) {
                if (list.get(j).getId().equals(list.get(i).getId())) {
                    list.remove(j);
                }
            }
        }
        return list;
    }
}
